package chapter03;
class Student9{
    private String name;
    private int age;
    public  Student9(String n ,int a){
        name = n;
        age=a;
    }
    public  void read (){
        System.out.println("我是："+name+",年龄："+age);
    }
}
public class Example06 {
    public static void main(String[] args) {
        Student9 stu =new Student9("张三",18);
        stu.read();
    }
}
